<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page   contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" />
		<link rel="stylesheet" href="<%=path%>/css/Site.css" />
		<link rel="stylesheet" href="<%=path%>/css/zy.all.css" />
		<link rel="stylesheet" href="<%=path%>/css/font-awesome.min.css" />
		<link rel="stylesheet" href="<%=path%>/css/amazeui.min.css" />
		<link rel="stylesheet" href="<%=path%>/css/admin.css" />
	</head>

	<body>
		<div class="dvcontent">

			<div>
				<!--tab start-->
				<div class="tabs" style="margin: 30px;">
					<div class="hd">
						<ul>
							<li class="on" style="box-sizing: initial;-webkit-box-sizing: initial;">已选课程</li>
						</ul>
					</div>
					<div class="bd">
						<ul style="display: block;padding: 20px;">
							<li>
								<!--分页显示角色信息 start-->
								<div id="dv1">
									<table class="table" id="tbRecord">
										<thead>
											<tr>
												<th>课程编号</th>
												<th>课程名称</th>
												<th>上课时间</th>
												<th>任课教师</th>
												<th>学分</th>
												<th>退选</th>
											</tr>
										</thead>
										<c:forEach items="${selectList}" var="select">
										<tbody>
										<tr>
											<td>${select.courseId}</td>
											<td>${select.course.courseName}</td>
											<td>${select.course.courseTime}</td>
											<td>${select.teacher.teacherName}</td>
											<td>${select.course.credit}</td>
											<td class="delete"><button onclick="btn_delete(${select.selectId})"><i class="icon-trash bigger-120"></i>退选</button></td>
										</tr>
										</tbody>
									</c:forEach>
									</table>
								</div>
								<!--分页显示角色信息 end-->
							</li>
						</ul>
						<ul class="theme-popbod dform" style="display: none;">
								<div class="am-cf admin-main" style="padding-top: 0px;">
			<!-- content start -->
			
	<div class="am-cf admin-main" style="padding-top: 0px;">
		<!-- content start -->
		<div class="admin-content">
			<div class="admin-content-body">
				
				<div class="am-g">
					<div class="am-u-sm-12 am-u-md-4 am-u-md-push-8">
						
					</div>
					
				</div>
			
		</div>
		<!-- content end -->
	</div>
							<!--添加 end-->
							<!--end-->
						</ul>
					</div>
				</div>
				<!--tab end-->

			</div>

			
			 <script src="<%=path%>/js/jquery-1.7.2.min.js" type="text/javascript"></script>
              <script src="<%=path%>/js/plugs/Jqueryplugs.js" type="text/javascript"></script>
              <script src="<%=path%>/js/_layout.js"></script>
             <script src="<%=path%>/js/plugs/jquery.SuperSlide.source.js"></script>
			<script>
				var btn_delete = function(selectId) {
					$.jq_Confirm({
						message: "您确定要退选吗?",
						btnOkClick: function() {
                            window.location.href ="<%=path%>/s_student/delSelection?selectId="+selectId;
						}
					});
				}
			</script>

		</div>
	</body>

</html>